package Message.Public
{
    import Framework.Serialize.*;

    public class SPetSireInfo extends Object
    {
        public var entityId:SEntityId;
        public var status:EPetSireStatus;
        public var itemCode:int;
        public var icon:String;
        public var uid:String;
        public var growth:int;
        public var talent:int;
        public var spirit:int;
        public var sex:int;
        public var needLevel:int;

        public function SPetSireInfo()
        {
            
        }

        public function __write(param1:SerializeStream) : void
        {
            this.entityId.__write(param1);
            this.status.__write(param1);
            param1.writeInt(this.itemCode);
            param1.writeString(this.icon);
            param1.writeString(this.uid);
            param1.writeInt(this.growth);
            param1.writeInt(this.talent);
            param1.writeInt(this.spirit);
            param1.writeInt(this.sex);
            param1.writeInt(this.needLevel);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.status = EPetSireStatus.__read(param1);
            this.itemCode = param1.readInt();
            this.icon = param1.readString();
            this.uid = param1.readString();
            this.growth = param1.readInt();
            this.talent = param1.readInt();
            this.spirit = param1.readInt();
            this.sex = param1.readInt();
            this.needLevel = param1.readInt();
            
        }

    }
}
